package cn.bugstack.springframework.beans.factory.config;

import cn.bugstack.springframework.beans.BeansException;
import cn.bugstack.springframework.beans.factory.ConfigurableListableBeanDefinition;
import cn.bugstack.springframework.beans.factory.ConfigurableListableBeanFactory;

/**
 *
 * 允许自定义修改BeanDefinition的属性
 * @author ouyangzhao
 * @time 2022-08-01
 */
public interface BeanFactoryPostProcessor{

    /**
     * 在所有的BeanDefinition加载完成后,实例化bean之前,提供对BeanDefinition修改的操作
     * @param beanFactory
     */
    void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException;

}
